Cotpl_expr
public class Cotpl_expr
| Field Summary | |
|---|---|
| protected static array Operator encoding map | |
| protected static array Operator precedence (priority) mapping | |
| protected array Postfix expression stack | |
| Constructor Summary | |
|---|---|
| void | __construct(string text) Constructs postfix expression from infix string |
| Method Summary | |
|---|---|
| string | Represents in postfix form rather than infix, so don't be confused |
| bool | Evaluates the logical expression |
protected static array Operator encoding map $operators = array(...)
protected static array Operator precedence (priority) mapping $precedence = array(...)
protected array Postfix expression stack $tokens = array()
public void __construct(string text)
public string __toString()
public bool evaluate(XTemplate tpl)